/*
 * SatComm.h
 *
 *  Created on: Nov 9, 2014
 *      Author: root
 */

#include"SatCommunication/Communication/Connection.hpp"


#ifndef SATCOMM_H_
#define SATCOMM_H_

bool ListenInitMSG(Connection server,int TimeOutSec);
bool SendACKandWaitForMSGreceive(Connection server,int TimeOutSec,Message &msg);
bool SendSAT_I_DATAandWaitForMSGreceive(Connection server,int TimeOutSec,Message &msg);
bool waitForMSG(Connection server,int TimeOutSec,Message &msg);
bool sendACK(Connection server,int TimeOutSec);
bool isEND_CMDmsg(Message request);
bool isCMD_TO_SAT_Imsg(Message request);
bool isACKmsg(Message request);
bool isGO_CMDmsg(Message request);
string getSatData(); //need to rewrite


#endif /* SATCOMM_H_ */
